Designing a State Model |
|
A state model is a set of states, events, and transitions. Transition is the transformation of a business object from one state to another. Events trigger the transition of a business object from one state to the next state.
- Select a starting point and click
(MDM State Model) to create an MDM State Model. The <Untitled MDM State Model> - MDM State Model window appears.
- Click on the States tab to create states. Refer to Creating a State, for the procedure to create states.
- Click the Transitions tab to define transitions between states, and select
on the tool bar. The Transition - Enter Transition Details window appears.
- Specify the state from which the transition starts in the From State drop-down list.
- Specify the state where the transition ends in the To State drop-down list.
- Specify a name for event that triggers the transition in the Event Name field.
- If you want to specify a guard on the transition, select the Use Guard option. Else, skip this step and go to the next step. The Guard window is displayed.
- Specify a name for the guard in the Guard Name field.
- Specify the type of guard in the Guard Type drop down menu. Currently only guard of type Rule is available. You may Create Custom Guards, if required.
- Type the rule expression in the Rule Expression field. To view an example for a rule expression, refer to Example for Configuring a Rule Expression in MDM.
- Select Show Event in Cockpit option to show this event in the instance view of MDM Cockpit.
- Click OK. The transition is created.
- Repeat the above steps until all the required transitions are created.
- Click
. The <Untitled MDM State Model> - MDM State Model dialog box appears.
- Type the appropriate name and description for the MDM State Model in the Name and Description fields.
Note:
To save the MDM State Model at a specific location, clickand select a folder in the Select Folder dialog box. If required, create a project, right-click it and create a folder.
- Click Save in the <MDM State Model> - MDM State Model dialog box.
The state model is created.
You can validate the created state model.
Note:
- To edit the attributes of a transition, select a transition and click
.
- To delete a transition, select the required transition and click
.
- To view the SCXML code of a state model, click (View SCXML) icon.
After you complete this task:
The state model must be associated with an MDM hub data entity in an MDM model.